package pers.gxm.bridge;

public class CharDisplayImpl extends DisplayImpl{
    public static void main(String[] args) {
        IncreaseDisplay id = new IncreaseDisplay(new CharDisplayImpl('<', '#', '>'), 1);
        id.increaseDisplay(10);

    }

    private char start ;
    private char end;
    private char content;
    public CharDisplayImpl(char start,char content,char end){
        this.start = start;
        this.end = end;
        this.content = content;
    }
    @Override
    public void rawOpen() {
        System.out.print(start);
    }

    @Override
    public void rawPrint() {
        System.out.print(content);
    }

    @Override
    public void rawClose() {
        System.out.println(end);
    }
}
